package day_3.demo5;/*
 *@ 代阳敲的专属代码
 **/

public class Student extends Preson {
    private String id;
    private int score;
    public Student() {

    }
    public Student(String name, int age, String id, int score) {
        super(name, age);
        setId(id);
        setScore(score);
    }
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }
    public String say() {
        return super.say()+" "+getId()+" "+getScore();
    }
}
